package com.zxt.content.user.model;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.time.LocalDateTime;

/**
 * Description: zxt<br/>
 * date: 2023/1/28 14:06<br/>
 *
 * @author: zxt <br/>
 * @since JDK 1.8
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString(callSuper = true)
@TableName("all_life_log")
public class LifeLog {

    public static final LambdaQueryWrapper<LifeLog> gw() {
        return new LambdaQueryWrapper<>();
    }

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 事件发生地点
     */
    @TableField(value = "address")
    private String address;

    /**
     * 事件主角
     */
    @TableField(value = "main_name")
    private String mainName;

    /**
     * 事件内容
     */
    @TableField(value = "event_content")
    private String eventContent;

    /**
     * 事件类型 1.意料之内 2.意料之外
     */
    @TableField(value = "event_type")
    private Byte eventType;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

    /**
     * 是否删除
     */
    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean isDeleted;


}
